import request from '@/utils/request'

// 查询库间管理列表
export function listStorehouseroom(query) {
  return request({
    url: '/store/storehouseroom/list',
    method: 'get',
    params: query
  })
}

// 查询库间管理详细
export function getStorehouseroom(guid) {
  return request({
    url: '/store/storehouseroom/' + guid,
    method: 'get'
  })
}

// 新增库间管理
export function addStorehouseroom(data) {
  return request({
    url: '/store/storehouseroom',
    method: 'post',
    data: data
  })
}

// 修改库间管理
export function updateStorehouseroom(data) {
  return request({
    url: '/store/storehouseroom',
    method: 'put',
    data: data
  })
}

// 删除库间管理
export function delStorehouseroom(guid) {
  return request({
    url: '/store/storehouseroom/' + guid,
    method: 'delete'
  })
}

// 导出库间管理
export function exportStorehouseroom(query) {
  return request({
    url: '/store/storehouseroom/export',
    method: 'get',
    params: query
  })
}